/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.context;

import com.controller.AbstractController;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Rdelacruz
 */
public class ControllerMapping {
    private  ControllerContext controllerContext;
    private Map<String,AbstractController> controllers;
    
    public ControllerMapping() {
        
        
    }
    
    public void setControllerContext(ControllerContext controllerContext) {        
        this.controllerContext = controllerContext;        
    }
        
     // MAPEO String - Controller
    public void inicializar() {        
        controllers = new HashMap<String,AbstractController>();
        
        controllers.put("usuario", controllerContext.getUsuarioController());
        controllers.put("data_campo", controllerContext.getDataXmlCampoController());
        controllers.put("data_marco", controllerContext.getDataXmlMarcoController());        
        controllers.put("reporte_transferencia", controllerContext.getReporteTransferenciaController());
        controllers.put("monitoreo_transferencia", controllerContext.getMonitoreoTransferenciaController());        
        //controllers.put("logxmlcargado", controllerContext.getLogXmlCargadoController());
        controllers.put("personal", controllerContext.getPersonalController());
        //controllers.put("conglomerado_personal", controllerContext.getConglomeradoPersonalController());
        controllers.put("conglomerado_personal_resumen", controllerContext.getConglomeradoPersonalResumenController());
        controllers.put("ubigeo", controllerContext.getUbigeoController());
        controllers.put("programacion_periodo", controllerContext.getProgramacionPeriodoController());
        controllers.put("periodo", controllerContext.getPeriodoController());
        controllers.put("concepto_pago_personal", controllerContext.getConceptoPagoPersonalController());
    }

    public Map<String, AbstractController> getControllers() {
        return controllers;
    }    
    
}
